<!DOCTYPE HTML>
<html>

<head>
    <title>VIP特权 - 二手电子乐园</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="description" content="了解VIP用户特权和权益" />
    <link rel="stylesheet" href="assets/css/main.css" />
    <link rel="stylesheet" href="assets/css/fontawesome-all.min.css" />
    <style>
        .vip-hero {
            background: linear-gradient(135deg, #e44c65, #f39c12);
            color: white;
            text-align: center;
            padding: 3rem 0;
            margin-bottom: 3rem;
        }

        .vip-hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .vip-hero p {
            font-size: 1.3rem;
            opacity: 0.9;
        }

        .privileges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .privilege-card {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .privilege-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .privilege-icon {
            font-size: 3rem;
            color: #e44c65;
            margin-bottom: 1rem;
        }

        .privilege-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 1rem;
        }

        .privilege-description {
            color: #666;
            line-height: 1.6;
        }

        .vip-pricing {
            background: #f8f9fa;
            padding: 3rem;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 3rem;
        }

        .pricing-title {
            font-size: 2rem;
            color: #333;
            margin-bottom: 2rem;
        }

        .pricing-plans {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .pricing-plan {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            border: 2px solid #e1e1e1;
            transition: border-color 0.3s ease;
        }

        .pricing-plan:hover {
            border-color: #e44c65;
        }

        .plan-name {
            font-size: 1.3rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 1rem;
        }

        .plan-price {
            font-size: 2rem;
            color: #e44c65;
            font-weight: bold;
            margin-bottom: 1rem;
        }

        .plan-duration {
            color: #666;
            margin-bottom: 1.5rem;
        }

        .plan-features {
            list-style: none;
            padding: 0;
            margin-bottom: 2rem;
        }

        .plan-features li {
            padding: 0.5rem 0;
            color: #666;
            border-bottom: 1px solid #f0f0f0;
        }

        .plan-features li:last-child {
            border-bottom: none;
        }

        .plan-button {
            width: 100%;
            padding: 1rem;
            background: #e44c65;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .plan-button:hover {
            background: #d63851;
        }

        .vip-faq {
            margin-top: 3rem;
        }

        .faq-title {
            font-size: 2rem;
            text-align: center;
            color: #333;
            margin-bottom: 2rem;
        }

        .faq-item {
            background: white;
            margin-bottom: 1rem;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .faq-question {
            padding: 1.5rem;
            background: #f8f9fa;
            cursor: pointer;
            font-weight: bold;
            color: #333;
            transition: background 0.3s ease;
        }

        .faq-question:hover {
            background: #e9ecef;
        }

        .faq-answer {
            padding: 1.5rem;
            color: #666;
            line-height: 1.6;
            display: none;
        }

        .faq-answer.active {
            display: block;
        }
    </style>
</head>

<body class="is-preload" v-scope="{ showLoginPrompt: false }" v-cloak>
    <div id="page-wrapper">
        <div id="header-container"></div>

        <!-- VIP Hero Section -->
        <div class="vip-hero">
            <div class="container">
                <h1><i class="icon solid fa-crown"></i> VIP特权会员</h1>
                <p>享受专属特权，让您的商品脱颖而出</p>
            </div>
        </div>

        <!-- Main Content -->
        <section id="main" class="wrapper style2">
            <div class="container">
                <!-- VIP特权介绍 -->
                <div class="privileges-grid">
                    <div class="privilege-card">
                        <div class="privilege-icon">
                            <i class="icon solid fa-star"></i>
                        </div>
                        <h3 class="privilege-title">优先展示</h3>
                        <p class="privilege-description">
                            您的商品将在搜索结果和分类页面中优先展示，获得更多曝光机会，提高成交概率。
                        </p>
                    </div>

                    <div class="privilege-card">
                        <div class="privilege-icon">
                            <i class="icon solid fa-certificate"></i>
                        </div>
                        <h3 class="privilege-title">诚信标记</h3>
                        <p class="privilege-description">
                            您的商品将获得"诚信卖家"特殊标记，提高买家信任度，让交易更加顺畅。
                        </p>
                    </div>

                    <div class="privilege-card">
                        <div class="privilege-icon">
                            <i class="icon solid fa-infinity"></i>
                        </div>
                        <h3 class="privilege-title">无限发布</h3>
                        <p class="privilege-description">
                            不限制每月发布商品的数量，让您可以展示更多商品，扩大销售机会。
                        </p>
                    </div>

                    <div class="privilege-card">
                        <div class="privilege-icon">
                            <i class="icon solid fa-headset"></i>
                        </div>
                        <h3 class="privilege-title">专属客服</h3>
                        <p class="privilege-description">
                            获得专属客服支持，优先解决问题，享受更贴心的服务体验。
                        </p>
                    </div>

                    <div class="privilege-card">
                        <div class="privilege-icon">
                            <i class="icon solid fa-chart-line"></i>
                        </div>
                        <h3 class="privilege-title">数据分析</h3>
                        <p class="privilege-description">
                            获得详细的商品浏览数据和用户行为分析，帮助您优化商品展示策略。
                        </p>
                    </div>

                    <div class="privilege-card">
                        <div class="privilege-icon">
                            <i class="icon solid fa-bolt"></i>
                        </div>
                        <h3 class="privilege-title">快速审核</h3>
                        <p class="privilege-description">
                            商品信息审核优先处理，快速上线，不错过最佳销售时机。
                        </p>
                    </div>
                </div>

                <!-- VIP定价 -->
                <div class="vip-pricing">
                    <h2 class="pricing-title">选择适合您的VIP套餐</h2>
                    <div class="pricing-plans">
                        <div class="pricing-plan">
                            <h3 class="plan-name">月度VIP</h3>
                            <div class="plan-price">¥29</div>
                            <div class="plan-duration">每月</div>
                            <ul class="plan-features">
                                <li>优先展示</li>
                                <li>诚信标记</li>
                                <li>无限发布</li>
                                <li>专属客服</li>
                            </ul>
                            <button class="plan-button" @click="handleVipRegister">立即开通</button>
                        </div>

                        <div class="pricing-plan">
                            <h3 class="plan-name">季度VIP</h3>
                            <div class="plan-price">¥79</div>
                            <div class="plan-duration">每季度（省¥8）</div>
                            <ul class="plan-features">
                                <li>优先展示</li>
                                <li>诚信标记</li>
                                <li>无限发布</li>
                                <li>专属客服</li>
                                <li>数据分析</li>
                            </ul>
                            <button class="plan-button" @click="handleVipRegister">立即开通</button>
                        </div>

                        <div class="pricing-plan">
                            <h3 class="plan-name">年度VIP</h3>
                            <div class="plan-price">¥299</div>
                            <div class="plan-duration">每年（省¥49）</div>
                            <ul class="plan-features">
                                <li>优先展示</li>
                                <li>诚信标记</li>
                                <li>无限发布</li>
                                <li>专属客服</li>
                                <li>数据分析</li>
                                <li>快速审核</li>
                            </ul>
                            <button class="plan-button" @click="handleVipRegister">立即开通</button>
                        </div>
                    </div>
                </div>

                <!-- FAQ -->
                <div class="vip-faq">
                    <h2 class="faq-title">常见问题</h2>

                    <div class="faq-item">
                        <div class="faq-question" @click="toggleFaq($event)">
                            如何成为VIP会员？
                        </div>
                        <div class="faq-answer">
                            您需要先注册并登录账户，然后选择适合的VIP套餐进行开通。开通后即可享受所有VIP特权。
                        </div>
                    </div>

                    <div class="faq-item">
                        <div class="faq-question" @click="toggleFaq($event)">
                            VIP会员可以随时取消吗？
                        </div>
                        <div class="faq-answer">
                            可以的，您可以随时取消VIP会员资格。取消后，在当前付费周期结束前仍可享受VIP特权。
                        </div>
                    </div>

                    <div class="faq-item">
                        <div class="faq-question" @click="toggleFaq($event)">
                            VIP特权什么时候生效？
                        </div>
                        <div class="faq-answer">
                            VIP特权在您成功开通后立即生效，您的商品将立即获得优先展示和诚信标记。
                        </div>
                    </div>

                    <div class="faq-item">
                        <div class="faq-question" @click="toggleFaq($event)">
                            如何联系专属客服？
                        </div>
                        <div class="faq-answer">
                            VIP用户可以通过专属客服热线400-123-4567或发送邮件至vip@2ndelectronics.com联系我们的专属客服团队。
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <div id="footer-container"></div>
    </div>

    <!-- Scripts -->
    <script src="utils/loader.js"></script>
    <script>
        window.addEventListener('scriptsLoaded', function () {
            // 加载页头和页脚组件
            if (typeof fetchHtml !== 'undefined') {
                fetchHtml.fetchAll();
            }

            // 初始化 petite-vue
            if (typeof PetiteVue !== 'undefined') {
                PetiteVue.createApp({
                    showLoginPrompt: false,

                    handleVipRegister() {
                        const isLogin = localStorage.getItem('isLogin') === 'true';
                        if (!isLogin) {
                            alert('请先登录后开通VIP会员');
                            window.location.href = 'login.html';
                            return;
                        }

                        // 显示登录提示
                        alert('请先登录后开通VIP会员功能');
                    },

                    toggleFaq(event) {
                        const question = event.target;
                        const answer = question.nextElementSibling;
                        const isActive = answer.classList.contains('active');

                        // 关闭所有FAQ
                        document.querySelectorAll('.faq-answer').forEach(item => {
                            item.classList.remove('active');
                        });

                        // 如果当前不是激活状态，则激活
                        if (!isActive) {
                            answer.classList.add('active');
                        }
                    }
                }).mount();
            }
        });
    </script>
</body>

</html>